﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IFamilySketchCurve.h"

namespace gfam
{

    /// \brief 3D草图线
    class GM_FAMILY_SERVICE_EXPORT IFamily3DSketchCurve : public IFamilySketchCurve
    {
        DEFINE_CAST_DERIVED(gfam::IFamily3DSketchCurve, gfam::IFamilySketchCurve)
    public:


        /// \brief  获取引用对象
        ///
        /// \return 引用对象
        virtual const gcmp::IGraphicsNodeReference* GetGNodeRefObj() const = 0;

        /// \brief 设置引用对象
        ///
        /// \param referenceObject 引用对象
        virtual void SetGNodeRefObj(gcmp::OwnerPtr<gcmp::IGraphicsNodeReference> referenceObject) = 0;
        /// \brief  获取引用对象关联更新id
        ///
        /// \return 引用对象关联更新id
        virtual RegenDataId GetGNodeRefObjRdId() const = 0;

        /// \brief  生成图形表达
        virtual void CreateCurveGrep() = 0;

        /// \brief  根据当前曲线引用的几何对象，更新当前曲线的几何
        virtual void ComputeGCurveFromReference() = 0;

        /// \brief 获取ImplementationUid
        /// 
        /// \return ImplementationUid
        static gcmp::UniIdentity GetImplementationUid();

    };
}